<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <title>jQuery UI Tabs - Default functionality</title>
        <jsp:include page="commons/commoncss.jsp"/>
        
        <jsp:include page="commons/commonjs.jsp" />
       
        <script>
            function check(){
            	var acc = "admin";
            	var email = "admin@fsoft.com.vn";
            	if(document.getElementById("account").value!=acc){
            	alert("The username isn't existed!");	
            	return false;
            	}
            	if(document.getElementById("account").value==acc&&document.getElementById("email").value!=email){
            		alert("The username and email are not fit!");	
                	return false;
            	}
            	alert("The password is sent to your email!");
            	return true;
            }
        </script>
    </head>
    <body>
        <div id="container">
            <jsp:include page="commons/header.jsp" />
            <div id="content">
                <div id="maincontent">
                    <div id="maincontentheader">
                        Recover password
                    </div>
                    <div id="tabs">
                        <div class="ui-tabs-panel">
                        <s:form action="recover.action" method="post">
                        <table align="center">
                        	<s:textfield name="account" size="25" key="lbl.login.account"></s:textfield>
							<s:textfield name="email" size="25" key="lbl.login.email"></s:textfield>
                        </table>
						<s:submit align="center" value="Submit"></s:submit>
						</s:form>
						<s:actionerror/>
                        </div>
                    </div>
                </div>
            </div>
            <jsp:include page="commons/footer.jsp"/>
        </div>
    </body>
</html>